package cn.sdormitory.controller.evaluation;

import cn.sdormitory.common.api.CommonPage;
import cn.sdormitory.common.api.CommonResult;
import cn.sdormitory.evaluation.entity.StudentHelpEntity;
import cn.sdormitory.evaluation.service.EvaluationReportService;
import cn.sdormitory.evaluation.vo.EvaluationReportVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 考评报表类
 */
@RestController
@RequestMapping("/evaluationReport")
public class EvaluationReportController {
    @Resource
    EvaluationReportService evaluationReportService;
    /**
     * 查询日常工作汇总的班级信息
     * @param vo
     * @return
     * @throws Exception
     */
    @PostMapping(value = "/selectDayworkClass")
    public CommonResult<CommonPage> selectDayworkClass(@RequestBody EvaluationReportVO vo) throws Exception {
        IPage<EvaluationReportVO> evaluationReportVOIPage = evaluationReportService.pageList(vo);
        return CommonResult.success(CommonPage.restPage(evaluationReportVOIPage));
    }
}
